/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mygang.model.news;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;

/**
 *
 * @author eugene
 */
@Entity
@Table(name="NEWS_ITEM")
public class NewsItem {
    
    @Id
    @Column(name="NEWS_ITEM_ID")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    
    @Column(name="TITLE")
    private String title;
    
    @Column(name="PUB_DATE")
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date publicationDate;
    
    @Column(name="LINK")
    private String link;
    
    @Column(name="DESCRIPTION")
    private String description;

    public NewsItem() {
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    public Date getPublicationDate() {
        return publicationDate;
    }

    public void setPublicationDate(Date publicationDate) {
        this.publicationDate = publicationDate;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
    
}
